package com.rd.student.jiaji.class3.sunguowei.day0802.CountPractice;

import java.util.Arrays;

public class Test7 {
    public static int[] copyOf(int[] arr){
        int[] arr1=new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            arr1[i]=arr[i];

        }
        return arr1;
    }

    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9};
        int[] arr1=copyOf(arr);
        System.out.println(Arrays.toString(arr1));
    }
}
